package lovo01.lesson04;

/**
 * 盗贼类
 */
public class Robber extends Role implements Rob,Attack{
    public Robber() {
    }

    public Robber(String name, int level) {
        super(name, level);
    }

    @Override
    public void attack() {
        System.out.println("会攻击");
    }

    @Override
    void selfIntroduce() {
        System.out.println("我是：" + getName() + "，目前等级是："
                + getLevel() + "级" + "，是一位盗贼");
    }

    @Override
    public void rob() {
        System.out.println("会偷盗");
    }
}
